<?php

/**
 * @Author: zhibinm (113664000@qq.com)
 * @Date:   2018-04-17 11:18:39 
 * @Copyright:   xuebingsi
 * @Last Modified by:   Zhibinm
 * @Last Modified time: 2018-04-17 12:26:28
 */
include './Lib/Data.class.php';
include './Lib/Upload.class.php';

$files = (new Data())->ChangeType();

// $config = [];

$upload = new Upload();

// $upload = new Upload();

foreach ($files as $file) {

	// var_dump($file);

	// $file['error'] = 6;

	$res = $upload->move($file);

	if(!$res){
		var_dump($upload->errorInfo);
	}else{
		echo "上传成功";
	}

	break;

}

